import {request} from './request';


//分类页调用产品
export function getGoryGoods(order='sales', cid=0, page=1) {
    return request({
        url:'api/goods?category_id='+cid+'&page='+page+'&'+order+'=1',
    })
}


//首页调用产品
export function getCategory(cid=0, page=1) {
    return request({
        url:'api/goods?category_id='+cid+'&page='+page+'',
    })
}